﻿using System.Web.Mvc;

using AttributeRouting;
using AttributeRouting.Web.Mvc;
using Phatent.Model.Functions;
using Phatent.Logic.Functions;
namespace Phatent.Website.Areas.Admin.Controllers
{
    [RouteArea("Admin")]
    [RoutePrefix("Fun")]
    [Authorize]
    public class FunController : Controller
    {
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("Meeting")]
        public ActionResult Meeting()
        {
            return View();
        }

        [Route("MeetingEdit/{id:int}")]
        public ActionResult MeetingEdit(int id=0)
        {
            MeetingModel model;
            if (id == 0)
                model = new MeetingModel();
            else
                model = MeetingLogic.GetModel(id);
            return PartialView(model);
        }

        [Route("EmployeeList")]
        public ActionResult EmployeeList()
        {
            return View();
        }
    }
}
